package com.youlu.campus.entity.pay.statistics;

import com.youlu.campus.base.base.EntityBase;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.CompoundIndexes;
import org.springframework.data.mongodb.core.mapping.Document;

@Getter
@Setter
@Document(collection = "pay_button_statistics")
@CompoundIndexes({
        @CompoundIndex(name = "date_-1_buttonKey_-1", def = "{'date':-1,'buttonKey':-1}",unique = true)
})
public class PayButtonStatistics extends EntityBase {

    private Integer date;
    private String dateFormat;
    private String buttonKey;

    private Long uv =0L;

    private Long pv=0L;


    private Double second =0D;

}
